<?php
class helper_form_button extends system_view_helper_formElement {
	
	public function button($name, $value = null, $attribs = null) {
		$info = $this->_getInfo($name, $value, $attribs);		
		$xhtml = '<button name="' . $info['name'] . '" ' .
					'id="' . $info['id'] . '" ' . 
					'value="' . $info['value'] . '"' . $this->_htmlAttribs($info['attribs']) .
					'>' . (isset($info['attribs']['text']) ? $info['attribs']['text'] : '') . '</button>';
		return $xhtml;
	}
	
}
